<template>
	<view>
		<u-cell-group title="账户管理">
			<u-cell-item title="绑定手机" value="1" :arrow="false"/>
			<u-cell-item title="绑定邮箱" value="1" :arrow="false"/>
			<u-cell-item title="绑定微信" value="1" :arrow="false"/>
		</u-cell-group>
		<u-cell-group title="修改密码">
			<u-cell-item title="修改密码"/>
		</u-cell-group>
		<u-cell-group title="身份认证">
			<u-cell-item title="身份认证">{{$store.getters.info.type==1? '管理员':'参赛者'}}</u-cell-item>
		</u-cell-group>
		<br><br>
		<u-button type="default" @click="logOut()">退出</u-button>
	
		<navigator url="" class="unsubscribe">注销账户</navigator>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			logOut(){
				this.$store.dispatch('logOut');
				uni.navigateTo({
					url:'/pages/login/login'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
page{
	background: #FAFAFA;
}
.unsubscribe{
	position: absolute;
	bottom: 5%;
	left: 50%;
	transform: translate(-50%,0);
}
</style>
